package s.k.gui.webtest.unittest;

import s.k.gui.webtest.element.Comobobox;
import s.k.gui.webtest.element.Element;
import s.k.gui.webtest.page.Page;

public class SKPaoPageTest extends Page {

	public SKPaoPageTest() {
		super();
		this.comment = "测试一下显卡的评测";
		init();
	}

	public Comobobox comboboxGame = new Comobobox("显卡评测的游戏选择");
	{

		comboboxGame.addIDLocator("ddl_game");
	}

	public Comobobox comboboxMode = new Comobobox("显卡评测的模式");
	{

		comboboxMode.addIDLocator("ddl_mode");

	}

	public Element checkText = new Element("评测的得分");
	{

		checkText.addXpathLocator(".//*[@id='div_gpuTop']/div[1]/div[2]/div/span");

	}

	public void checkStore() {

		comboboxGame.selectByRandomIndex();

		comboboxMode.selectByRandomIndex();

		String text = checkText.getText();

		System.out.print("在游戏<<" + comboboxGame.getSelectedValue() + ">>模式"+ comboboxMode.getSelectedValue() + "下的得分是");

		System.out.println("---->" + text);

	}
}
